package com.jiazhong.spring.ioc.work.work01;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {

    private static void a(){
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("work.xml");

        Classes bean = applicationContext.getBean("c", Classes.class);
        System.out.println(bean);
    }
    public static void main(String[] args) {
        a();
    }
}
